/**
 * Created by jimmy on 2015/12/9.
 */

'use strict';

angular.module('myorder', ['ngRoute','ngAnimate'])

    .config(['$routeProvider', function($routeProvider) {
        $routeProvider.when('/myorder', {
            templateUrl: 'myorder/myorder.html',
            controller: 'myorderCtrl'
        });
    }])

    .controller('myorderCtrl',  function($scope,$http) {
        $http.get("app/data/dish_listbyphone.php?phone=13501234567").success(function(data){
            $scope.myOrderList=data;
        });
    });